added in validations to the form