sign in using Restangular not ngResource

currently not working. net::ERR_NAME_NOT_RESOLVED