Function to be called to check whether a password matches the requirements during registration.
typedef PasswordValidationFunction = bool Function( String password, );