injects currentUser,currentDomain and login procedure improved