anchor.diff:              else
               {
                   console.log("Al ingelogd");
  -                location.href = '/CIMS/index.jsp';
  +                if(<%=currentUser%> !== null)
  +                {
  +                    location.href = '/CIMS/index.jsp';
  +                }
               }
   
           });
  
positive.code: <%@ page pageEncoding="UTF-8" import="authentication.UserBean" %>
  <%!
      public boolean isLoggedIn = false;
  %>
  <script>
      // This is called with the results from from FB.getLoginStatus().
  
negative.code: 
              <ul class="nav navbar-nav">
                  <%
                      currentUser = (UserBean) session.getAttribute("currentSessionUser");
                      if (currentUser != null && currentUser.isValid())
                      {
                          System.out.println("Userbean: " + currentUser + " name: " + currentUser.getUsername());
  