validate_key is optional.