diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
index 87c0991..7f17be3 100644
--- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
+++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
@@ -263,7 +263,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
alert(LoginConstants.ERROR_IN_FECTHING_DETAILS);
}
else {
- if (result.loginId != undefined && result.loginId != "" && result.loginId != null) {
+ if ((result.isAcknowledged == true) && (result.isModifiedCountAvailable == true)) {
alert('Your password has been reset.');
$rootScope.isVisibleLogin = true;
$rootScope.isVisibleResetPass = false;