Updated nested_validator.failure_message to use a case statement