error handling fixed in password reset.