add validation to command line