getting user info and sign out user function