establish socket io  after logining