getting user info and email from login