restore email and username in loginWithSessionData()

the function getUsername() don't work when the login is restored by sessionData