wip - restored login module to support multiple client sockets