Index: src/main/java/edu/gjoko/schedlr/config/AppFilter.java
===================================================================
--- src/main/java/edu/gjoko/schedlr/config/AppFilter.java	(revision 943857ccadc5bd0933c2bd0b003629ae75c29b17)
+++ src/main/java/edu/gjoko/schedlr/config/AppFilter.java	(revision cf9cdbf9e2bef95a0adc1db2bc845ef45bf080d8)
@@ -1,16 +1,14 @@
 package edu.gjoko.schedlr.config;
 
-import edu.gjoko.schedlr.services.PostgresUserDetailsService;
-import lombok.RequiredArgsConstructor;
 import org.springframework.security.core.GrantedAuthority;
 import org.springframework.security.core.context.SecurityContextImpl;
 import org.springframework.security.core.userdetails.UserDetails;
-import org.springframework.util.StringUtils;
-import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.filter.GenericFilterBean;
 
-import javax.servlet.*;
+import javax.servlet.FilterChain;
+import javax.servlet.ServletException;
+import javax.servlet.ServletRequest;
+import javax.servlet.ServletResponse;
 import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
 import javax.servlet.http.HttpSession;
 import java.io.IOException;
@@ -19,63 +17,30 @@
 import java.util.Map;
 
-@RequiredArgsConstructor
 public class AppFilter extends GenericFilterBean {
-
-    private final PostgresUserDetailsService userDetailsService;
     @Override
     public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
         HttpServletRequest httpServletRequest = (HttpServletRequest) servletRequest;
         HttpSession session = httpServletRequest.getSession(false);
-        HttpServletResponse response = (HttpServletResponse) servletResponse;
-
-        if(httpServletRequest.getRequestURI().endsWith(".js")
-                || httpServletRequest.getRequestURI().endsWith(".css")) {
-            filterChain.doFilter(servletRequest, servletResponse);
-            return;
-        }
-
-        if(httpServletRequest.getRequestURI().startsWith("/api")) {
-            session = ((HttpServletRequest) servletRequest).getSession(true);
-            SecurityContextImpl sci = (SecurityContextImpl) session.getAttribute("SPRING_SECURITY_CONTEXT");
-
-            if(sci != null && session.getAttribute("stakeholderId") == null) {
-                UserDetails userDetails = (UserDetails) sci.getAuthentication().getPrincipal();
-                Long stakeholderId = userDetailsService.loadStakeholderId(userDetails.getUsername());
-                session.setAttribute("stakeholderId", stakeholderId);
-            }
-            filterChain.doFilter(servletRequest, servletResponse);
-            return;
-        }
 
         if(session != null) {
+            Map<String, String> roleTargetUrlMap = new HashMap<>();
+            roleTargetUrlMap.put("DATE", "/date");
+            roleTargetUrlMap.put("GUESS_NUMBER", "/number");
             SecurityContextImpl sci = (SecurityContextImpl) session.getAttribute("SPRING_SECURITY_CONTEXT");
             if(sci != null) {
                 UserDetails userDetails = (UserDetails) sci.getAuthentication().getPrincipal();
-                Long stakeholderId = userDetailsService.loadStakeholderId(userDetails.getUsername());
-                session.setAttribute("stakeholderId", stakeholderId);
-
                 final Collection<? extends GrantedAuthority> authorities = userDetails.getAuthorities();
                 for (final GrantedAuthority grantedAuthority : authorities) {
                     String authorityName = grantedAuthority.getAuthority();
-                    String page = "";
-                    switch (authorityName) {
-                        case "ADMIN":
-                            page = "/admin";
-                            break;
-                        case "CUSTOMER":
-                            if ("/customer_admin".equals(httpServletRequest.getRequestURI())) {
-                                page = "/customer_admin";
-                            } else {
-                                page = "/homepage";
-                            }
-                            break;
-                        case "BUSINESS_OWNER":
-                            page = "/business_admin";
-                            break;
-                        default:
-                            break;
-                    }
-                    if(page != null && !page.trim().isEmpty() && !DispatcherType.ERROR.equals(servletRequest.getDispatcherType())) {
-                        servletRequest.getRequestDispatcher(page).forward(servletRequest, servletResponse);
+                    if("DATE".equalsIgnoreCase(authorityName)) {
+                        servletRequest.getRequestDispatcher("date").forward(servletRequest, servletResponse);
+                        return;
+                    } else if("GUESS_NUMBER".equalsIgnoreCase(authorityName)) {
+                        try {
+                            servletRequest.getRequestDispatcher("number").forward(servletRequest, servletResponse);
+                        } catch (Exception e) {
+                            e.printStackTrace();
+                        }
+
                         return;
                     }
