added input validate for cmdline. 100% done now