anchor.diff:      {
           // Validate the profile
           errors.clear();
  -        userMgr.validateProfile( profile, false, errors );
  -        
  +        userMgr.validateProfile( wikiContext, profile, errors );
  +
           // If no errors, save the profile now & refresh the principal set!
           if ( errors.size() == 0 )
           {
  
positive.code: <%
      WikiContext wikiContext = wiki.createContext( request, WikiContext.PREFS );
      AuthenticationManager mgr = wiki.getAuthenticationManager();
      UserManager userMgr = wiki.getUserManager();
      boolean containerAuth = mgr.isContainerAuthenticated();
      boolean cookieAssertions = AuthenticationManager.allowsCookieAssertions();
      boolean isAuthenticated = wikiContext.getWikiSession().isAuthenticated();
  
      // User must be authenticated to change the profile
      if( !isAuthenticated )
      {
          log.info("User "+wikiContext.getCurrentUser()+" has no access to set preferences - redirecting to login page.");
          String msg = "You do not seem to have the permissions for this operation. Would you like to login as another user?";
  
negative.code:         response.sendRedirect( wiki.getBaseURL()+"Login.jsp?page="+pageurl );
      }
      
      // If user doesn't exist, redirect to registration page
      UserProfile profile = userMgr.getUserProfile( wikiContext );
      if ( profile.isNew() )
      {
          log.info("User profile for "+wikiContext.getCurrentUser()+" doesn't exist; redirecting to registration page.");
          response.sendRedirect( wiki.getBaseURL()+"Register.jsp" );
      }
  
      NDC.push( wiki.getApplicationName()+":"+ wikiContext.getPage().getName() );
      
      pageContext.setAttribute( WikiTagBase.ATTR_CONTEXT,
  