anchor.diff:          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,
  
positive.code: <%@ page import="com.ecyrd.jspwiki.WikiEngine" %>
  <%@ page import="com.ecyrd.jspwiki.auth.NoSuchPrincipalException" %>
  <%@ page import="com.ecyrd.jspwiki.auth.AuthenticationManager" %>
  <%@ page import="com.ecyrd.jspwiki.auth.UserManager" %>
  <%@ page import="com.ecyrd.jspwiki.auth.WikiSecurityException" %>
  <%@ page import="com.ecyrd.jspwiki.auth.login.CookieAssertionLoginModule" %>
  <%@ page import="com.ecyrd.jspwiki.auth.user.DuplicateUserException" %>
  <%@ page import="com.ecyrd.jspwiki.auth.user.UserProfile" %>
  <%@ page import="com.ecyrd.jspwiki.tags.WikiTagBase" %>
  
negative.code:        errors = new HashSet();
         session.setAttribute( "errors", errors );
      }
      
      // Extract the user profile and action attributes
      profile = userMgr.parseProfile( wikiContext );
      String ok = request.getParameter("ok");
      String clear = request.getParameter("clear");
  
  