login and angular services for requesting resources