Validation always fails for non-strings

If the PasswordValidationAttribute is put on a non-string property or
field it will always fail the validation.