making our state validation a little friendlier