Starting to build out the angular.js logic for authentication.