add login namespace and initial dom initialisation