make the postResetpassword work