@RequestMapping(value = "/login", method = RequestMethod.POST)
    public String processLoginForm(Model model, @ModelAttribute("loginForm") LoginForm loginForm){
        if (formProcessor.checkLoginForm(model, loginForm)) {
            userService.setAuth();
            return "redirect:/main_page";
        }
        else {
            return "login";
        }
    }