updated command validation regex