check state

state validation added