 				, 700
 
 			$scope.checkValidation = ->
-				$scope.state.isValid = $scope.state.deleteText == "DELETE"
+				$scope.state.isValid = $scope.state.deleteText == $scope.email
 
 			$scope.delete = () ->
 				$scope.state.inflight = true

		$scope.deleteAccount = () ->
			modalInstance = $modal.open(
				templateUrl: "deleteAccountModalTemplate"
				controller: "DeleteAccountModalController"
			)
	]



			$scope.cancel = () ->
				$modalInstance.dismiss('cancel')
	]
