beginning of validation