@RequestMapping(value = "/login", method = RequestMethod.POST)
    public String processLoginForm(Model model, @ModelAttribute("loginForm") LoginForm loginForm,
                                   HttpServletResponse response){
        if (formProcessor.checkLoginForm(model, loginForm)) {
            Session session = sessionService.setAuth(userFacade.byEmail(loginForm.getEmail()).getId());
            response.addCookie(new Cookie("SESSIONID",session.getSessionId()));
            return "redirect:/main_page";
        }
        return "login";

    }