@RequestMapping(method = RequestMethod.GET, value = "login")
    private String showLoginPage(@RequestParam(value = "error", required = false) String error, Model model) {
        if (model.containsAttribute("loggedUser")) {
            return REDIRECT_PREFIX + "/";
        } else if (error == null) {
            return "loginPage";
        }
        return "errorPage";
    }