fix problems with log in