debugging the validation functions. going smoothly so far