basic validation checks