added isValid command