angular.equal will check If Password field have same values then it will return true otherwise false. See the code snippet:
angular.equal