fixed up input trap in login for client and revised client socket memory management in server