Fixed problem logging in