setup socket connection
added login