Refactor validate_option and log failed validations
Add custom exception ValidationError