Implement length validations