Adding code for the validations to work on the PasswordChange page