Updated EditAccountController to use $scope variable