Adding angular LoginCtrl and factory for navbar