Establishing user and server connection.