connection manager, login & register functionality