fix reset password and add acceptance test