fix for forgotPassword and newUserRegister