app.controller('registerController', ['$scope', '$location', 'AuthService',
    function ($scope, $location, AuthService) {
        $scope.register = function () {
            // initial values
            $scope.error = false;