initial draft of validation functions