Dismiss modal after logging in