refactored login.service and registration.service into one service called user.service and placed it in common.

Karma test case corrected so it works.
added loggedInUser again