Problem/Motivation
If a user wants to change the password he/she needs to enter the current password as well in the user edit form. The current password undergoes the form validation and return with the proper error message. But if we check the focus is set to the new password field which is not causing the error in submitting the form.
After following the steps to reproduce you will notice the error class is added to the wrong element.
Steps to reproduce
1)Navigate to user-edit form.
2) Enter the wrong current password while keeping everything else correct.
3) Save the form.