validation for size on input