avoid errors on login