get username and userid after login