Got all the login stuff sorted for now.