Close the modal when logging out