Fixed errors when user reset password by token.