checking validation