add command line argument validation