fixes forgotPassword and login