anchor.diff:          userNameValidityStatusCode = selfRegistrationMgtClient.checkUsernameValidity(username);
       } catch (SelfRegistrationMgtClientException e) {
           request.setAttribute("error", true);
  -        request.setAttribute("errorMsg", "Something went wrong while registering user : " + username +
  +        request.setAttribute("errorMsg", "Something went wrong while registering user : " + Encode.forHtmlContent(username) +
                   ". Please contact administrator");
           request.getRequestDispatcher("register.do").forward(request, response);
           return;
  
positive.code:                         <div class="alert alert-danger" id="error-msg" hidden="hidden">
                          </div>
  
                          <div class="padding-double font-large">Enter required fields to complete registration of <b><%=username%></b></div>
                          <!-- validation -->
                          <div class="padding-double">
                              <div id="regFormError" class="alert alert-danger" style="display:none"></div>
  
negative.code:                             <%}%>
  
                              <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 form-group required">
                                  <input id="username" name="username" type="hidden" value="<%=Encode.forHtmlAttribute(username)%>"
                                         class="form-control required usrName usrNameLength">
                              </div>
  
  