change to isValid check
Added GET command