// // Handle errors here // Close the popup when the close button is clicked