error handling for login & add UserInfo