Fix bug with login