Interim input validation functions