fix log in on localhost