validate user input and warn if bad