Validator: implemented min and max number validation