added _get_user_session_with_email helper function