Fixed problems with login