Now throws an error when a user supplies a validation function that doesn't exist.