anchor.diff:                      </thead>
                       <tbody>
                       <tr>
  -			<td class="formRow">
  -				<table class="normal" cellspacing="0">
  -				    <tr>
  -		                        <td class="leftCol-small"><fmt:message key='profile.name'/>&nbsp;<span class="required">*</span></td>
  -		                        <td><%=Encode.forHtmlContent(userProfile.getProfileName())%>
  -		                        </td>
  -		                    </tr>
  -		                    <%
  -		                        if (!readOnlyUserStore && profileConfigs != null && profileConfigs.length > 0
  -		                                    && profileConfigs[0] != null) {
  -		                    %>
  -		                    <tr>
  -		                        <td class="leftCol-small"><fmt:message key='profile.cofiguration'/></td>
  -		                        <td>
  -		                            <select name="profileConfiguration">
  -		                                <%
  -		                                    for (int i = 0; i < profileConfigs.length; i++) {
  -		                                %>
  -		                                <%
  -		                                    if (userProfile.getProfileConifuration().equals(profileConfigs[i])) {
  -		                                %>
  -		                                <option value="<%=Encode.forHtmlAttribute(profileConfigs[i])%>" selected="selected">
  -                                            <%=Encode.forHtmlContent(profileConfigs[i])%>
  -		                                </option>
  -		                                <%
  -		                                    } else {
  -		                                %>
  -		                                <option value="<%=Encode.forHtmlAttribute(profileConfigs[i])%>">
  -                                            <%=Encode.forHtmlContent(profileConfigs[i])%>
  -		                                </option>
  -		                                <%
  -		                                    }
  -		                                            }
  -		                                %>
  -		                            </select>
  -		                        </td>
  -		                    </tr>
  -		                    <%
  -		                        }
  -		                    %>
  -		                    <%
  -		                        if (userFields != null) {
  -		                                for (int i = 0; i < userFields.length; i++) {
  +                        <td class="formRow">
  +                            <table class="normal" cellspacing="0">
  +                                <tr>
  +                                    <td class="leftCol-small"><fmt:message key='profile.name'/>&nbsp;<span
  +                                            class="required">*</span></td>
  +                                    <td><%=Encode.forHtmlContent(userProfile.getProfileName())%>
  +                                    </td>
  +                                </tr>
  +                                <%
  +                                    if (!readOnlyUserStore && profileConfigs != null && profileConfigs.length > 0
  +                                            && profileConfigs[0] != null) {
  +                                %>
  +                                <tr>
  +                                    <td class="leftCol-small"><fmt:message key='profile.cofiguration'/></td>
  +                                    <td>
  +                                        <select name="profileConfiguration">
  +                                            <%
  +                                                for (int i = 0; i < profileConfigs.length; i++) {
  +                                            %>
  +                                            <%
  +                                                if (userProfile.getProfileConifuration().equals(profileConfigs[i])) {
  +                                            %>
  +                                            <option value="<%=Encode.forHtmlAttribute(profileConfigs[i])%>"
  +                                                    selected="selected">
  +                                                <%=Encode.forHtmlContent(profileConfigs[i])%>
  +                                            </option>
  +                                            <%
  +                                            } else {
  +                                            %>
  +                                            <option value="<%=Encode.forHtmlAttribute(profileConfigs[i])%>">
  +                                                <%=Encode.forHtmlContent(profileConfigs[i])%>
  +                                            </option>
  +                                            <%
  +                                                    }
  +                                                }
  +                                            %>
  +                                        </select>
  +                                    </td>
  +                                </tr>
  +                                <%
  +                                    }
  +                                %>
  +                                <%
  +                                    if (userFields != null) {
  +                                        for (int i = 0; i < userFields.length; i++) {
                                               if (ACCOUNT_DISABLED.equals(userFields[i].getClaimUri()) &&
                                                       username.equals(currentUser)) {
                                                   continue;
                                               }
  -		                    %>
  -		                    <%
  -		                        if (userFields[i].getDisplayName() != null) {
  -		                    %>
  -		                    <tr>
  -		                        <td class="leftCol-small"><%=Encode.forHtmlContent(userFields[i].getDisplayName())%> <%
  -                                    if (userFields[i].getRequired()) {
  -                                    %>
  -		                            &nbsp;<span class="required">*</span>
  -		                            <%
  -		                                }
  -		                            %>
  -		                        </td>
  -		                        <%
  -		                            String value = userFields[i].getFieldValue();
  -                                    if (value != null) {
  -                                    if (!readOnlyUserStore && !userFields[i].getReadOnly()) {
  -                                        if(value.equalsIgnoreCase("true") || value.equalsIgnoreCase("false")){
  -                                            // assume as boolean value. But actually this must be sent from backend.
  -                                            // will fix for next release.
  -		                         %>
  -                                <td>
  -                                    <input class="text-box-big" type="checkbox" onclick="setBooleanValueToTextBox(this)"
  -                                            <%if (Boolean.parseBoolean(value)) {%> checked="checked" <%}%>
  -                                           value="<%=Encode.forHtmlAttribute(userFields[i].getClaimUri())%>"/>
  -                                    <input id="<%=Encode.forHtmlAttribute(userFields[i].getClaimUri())%>"
  -                                           name="<%=Encode.forHtmlAttribute(userFields[i].getClaimUri())%>"
  -                                           type="hidden" value="<%=Encode.forHtmlAttribute(value)%>"/>
  -                                </td>
  -		                         <%
  -                                        } else {
  -                                 %>
  -                                            <td><input id="<%=Encode.forHtmlAttribute(userFields[i].getClaimUri())%>"
  -                                                       name="<%=Encode.forHtmlAttribute(userFields[i].getClaimUri())%>"
  -                                             class="text-box-big" type="text"
  -                                                       value="<%=Encode.forHtmlAttribute(userFields[i].getFieldValue())%>">
  -                                            </td>
  -		                         <%
  +                                %>
  +                                <%
  +                                    if (userFields[i].getDisplayName() != null) {
  +                                %>
  +                                <tr>
  +                                    <td class="leftCol-small"><%=Encode.forHtmlContent(userFields[i].getDisplayName())%> <%
  +                                        if (userFields[i].getRequired()) {
  +                                    %>
  +                                        &nbsp;<span class="required">*</span>
  +                                        <%
  +                                            }
  +                                        %>
  +                                    </td>
  +                                    <%
  +                                        String value = userFields[i].getFieldValue();
  +                                        if (value != null) {
  +                                            if (!readOnlyUserStore && !userFields[i].getReadOnly()) {
  +                                                if (value.equalsIgnoreCase("true") || value.equalsIgnoreCase("false")) {
  +                                                    // assume as boolean value. But actually this must be sent from backend.
  +                                                    // will fix for next release.
  +                                    %>
  +                                    <td>
  +                                        <input class="text-box-big" type="checkbox"
  +                                               onclick="setBooleanValueToTextBox(this)"
  +                                                <%if (Boolean.parseBoolean(value)) {%> checked="checked" <%}%>
  +                                               value="<%=Encode.forHtmlAttribute(userFields[i].getClaimUri())%>"/>
  +                                        <input id="<%=Encode.forHtmlAttribute(userFields[i].getClaimUri())%>"
  +                                               name="<%=Encode.forHtmlAttribute(userFields[i].getClaimUri())%>"
  +                                               type="hidden" value="<%=Encode.forHtmlAttribute(value)%>"/>
  +                                    </td>
  +                                    <%
  +                                    } else {
  +                                    %>
  +                                    <td><input id="<%=Encode.forHtmlAttribute(userFields[i].getClaimUri())%>"
  +                                               name="<%=Encode.forHtmlAttribute(userFields[i].getClaimUri())%>"
  +                                               class="text-box-big" type="text"
  +                                               value="<%=Encode.forHtmlAttribute(userFields[i].getFieldValue())%>">
  +                                    </td>
  +                                    <%
                                           }
                                       } else {
  -		                         %>
  -		                              <td><%=Encode.forHtmlContent(userFields[i].getFieldValue())%></td>
  -		                          <%
  -		                              }
  -                                  } else {
  -		                          %>
  -		                            <%
  -		                                if (!readOnlyUserStore && !userFields[i].getReadOnly()) {
  -		                            %>
  -
  -		                                 <td><input id="<%=Encode.forHtmlAttribute(userFields[i].getClaimUri())%>"
  -                                                    name="<%=Encode.forHtmlAttribute(userFields[i].getClaimUri())%>"
  -		                                   class="text-box-big" type="text"></td>
  -                                    <%
  -                                            } else {
  -                                    %>
  -                                         <td><input id="<%=Encode.forHtmlAttribute(userFields[i].getClaimUri())%>"
  -                                                    name="<%=Encode.forHtmlAttribute(userFields[i].getClaimUri())%>"
  -		                                   class="text-box-big" type="text" readonly="true"></td>
  +                                    %>
  +                                    <td><%=Encode.forHtmlContent(userFields[i].getFieldValue())%>
  +                                    </td>
  +                                    <%
  +                                        }
  +                                    } else {
  +                                    %>
  +                                    <%
  +                                        if (!readOnlyUserStore && !userFields[i].getReadOnly()) {
  +                                    %>
  +
  +                                    <td><input id="<%=Encode.forHtmlAttribute(userFields[i].getClaimUri())%>"
  +                                               name="<%=Encode.forHtmlAttribute(userFields[i].getClaimUri())%>"
  +                                               class="text-box-big" type="text"></td>
  +                                    <%
  +                                    } else {
  +                                    %>
  +                                    <td><input id="<%=Encode.forHtmlAttribute(userFields[i].getClaimUri())%>"
  +                                               name="<%=Encode.forHtmlAttribute(userFields[i].getClaimUri())%>"
  +                                               class="text-box-big" type="text" readonly="true"></td>
                                       <%
                                               }
                                           }
  -		                            %>
  -		                    </tr>
  -		                    <%
  -		                        }
  -		                                }
  -		                            }
  -		                    %>
  -				</table>
  -			</td>
  -		    </tr>
  +                                    %>
  +                                </tr>
  +                                <%
  +                                            }
  +                                        }
  +                                    }
  +                                %>
  +                            </table>
  +                        </td>
  +                    </tr>
                       <tr>
                           <td class="buttonRow">
                               <%
                                   if (!readOnlyUserStore) {
                               %>
                               <input name="updateprofile"
  -                                   type="button" class="button" value="<fmt:message key='update'/>" onclick="validate();"/>
  +                                   type="button" class="button" value="<fmt:message key='update'/>"
  +                                   onclick="validate();"/>
                               <%
                                   }
                               %>
                               <input type="button" class="button"
                                      onclick="javascript:location.href='index.jsp?username=<%=Encode.forUriComponent(username)%>' +
                                              '&fromUserMgt=<%=Encode.forUriComponent(fromUserMgt)%>&editCancel=true'"
  -                                          value="<fmt:message key='cancel'/>"/></td>
  +                                   value="<fmt:message key='cancel'/>"/></td>
                       </tr>
                       </tbody>
                   </table>
  
positive.code:         <%
              if ("true".equals(fromUserMgt)) {
          %>
              <%
                  if (!readOnlyUserStore) {
              %>
                  <h2><fmt:message key='update.profile1'/><%=Encode.forHtml(username)%></h2>
              <%
                  } else {
              %>
                  <h2><fmt:message key='view.profile1'/><%=Encode.forHtml(username)%></h2>
              <%
                  }
                      } else {
              %>
               <%
                   if (!readOnlyUserStore) {
               %>
                  <h2><fmt:message key='update.profile'/></h2>
               <%
                   } else {
               %>
                  <h2><fmt:message key='view.profile'/></h2>
               <%
                   }
                       }
               %>
          <div id="workArea">
              <script type="text/javascript">
                  function validate() {
  
                  <% if (userFields != null) {
                      for (int i = 0; i < userFields.length; i++) {
                          if(!userFields[i].getReadOnly()) {%>
                          var value = document.getElementsByName("<%=userFields[i].getClaimUri()%>")[0].value;
                          <%if (userFields[i].getRequired() && userFields[i].getDisplayName()!=null) {%>
                              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;
                              }
                          <%}
                          }
                      }
                  }
                  %>
                  
  	                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;
  	                    }
  	                }
  
                      document.updateProfileform.submit();
                  }
  
negative.code: 
  <!-- Set checkbox checked/unchecked value to hidden textbox value -->
  <script type="text/javascript">
      function setBooleanValueToTextBox(element) {
          document.getElementById(element.value).value = element.checked;
      }
  </script>
  