completed server side of login server