Added validations for less_than and greater_than