anchor.diff:      String profile = request.getParameter("profile");
       String fromUserMgt = request.getParameter("fromUserMgt");
       String noOfProfiles = request.getParameter("noOfProfiles");
  +    String ACCOUNT_DISABLED = "http://wso2.org/claims/identity/accountDisabled";
  +    String currentUser = (String) session.getAttribute("logged-user");
  +
       if (noOfProfiles == null) {
           noOfProfiles = "0";
       }
   
  -    if (fromUserMgt==null) fromUserMgt = "false";
  +    if (fromUserMgt == null) fromUserMgt = "false";
   
   
       UserProfileDTO userProfile = null;
  
positive.code:                     }
                  }
                  %>
  
  	                var unsafeCharPattern = /[<>`\"]/;
  	                var elements = document.getElementsByTagName("input");
  	                for(i = 0; i < elements.length; i++){
  	                    if((elements[i].type === 'text' || elements[i].type === 'password') &&
  	                       elements[i].value != null && elements[i].value.match(unsafeCharPattern) != null){
  	                        CARBON.showWarningDialog("<fmt:message key="unsafe.char.validation.msg"/>");
  	                        return false;
  
negative.code:                             if (validateEmpty("<%=userFields[i].getClaimUri()%>").length > 0) {
                                  CARBON.showWarningDialog("<%=Encode.forJavaScript(Encode.forHtml(userFields[i].
                                                             getDisplayName()))%>" + " <fmt:message key='is.required'/>");
                          return false;
                      }
                      <%}
                        if(userFields[i].getRegEx() != null){ %>
                      var reg = new RegExp("<%=Encode.forJavaScript(userFields[i].getRegEx())%>");
                      var valid = reg.test(value);
                      if (value != '' && !valid) {
                          CARBON.showWarningDialog("<%=Encode.forJavaScript(Encode.forHtml(userFields[i].
                                                            getDisplayName()))%>" + " <fmt:message key='is.not.valid'/>");
                                  return false;
                              }
  