fixes loginState at server