Added log-in and server interactions