Fixed some issues with reset password.