working on command validation