Create validation

for the validation functions