validating format