add login state at server