Login fixes

Guys, I fixed the errors with the login part.