command line input checks