Fix for validation bug on password change

Related to issue #159.