Show error message on invalid reset password attempt

For #5321