Client now has login method, which sends loginMessage to server.