Refactor validate_option and log failed validations