Some validation for command