Cannot figure out how to validate data input.