private AuthenticationProvider authenticationProvider;
@RequestMapping({ "/" })
public String index(@RequestParam(value = "articlesPage", defaultValue = "0", required = false) int articlesPage,
@RequestParam(value = "blogsPage", defaultValue = "0", required = false) int blogsPage, @RequestParam(value = "tab", defaultValue = "0", required = false) int tabNumber, Model model) {
AuthenticatedUser user = authenticationProvider.getCurrentUserDetails();
model.addAttribute("articlesPage", articlesPage);
model.addAttribute("blogsPage", blogsPage);
model.addAttribute("tabNumber", tabNumber);
if (user == null) {