Fixed data handling from authentication in login controller