Added states and transitions on user