validate cmd input

include additional checks to protect user from him/herself