adding restangular login and logout