server login implement

implement login logic in AccountManager