added user login, still working on ecn functionality