validating size