implement  login, logoff backend