Minor resetpassword Ajax handling modification (optimized)