close the modal after login via overlay