connect angular module for profile.js
abstracted login requests to rest.js