Validating input

setting up validation for input to be added