It works!!
Now the only small issue I'm having is that the error message which displays when validation fails for that condition (11) isn't clearing when the password has been successfully updated. Is it maybe because I have two separate forms on the page and I need to add something to clear errors in the second form?