to validate