@RequestMapping(method = RequestMethod.GET, value = "/login")
    public String getLoginPage(@RequestParam(value = "error", required = false) String errorMsg,
                               @RequestParam(value = "msg", required = false) String msg,
                               Model uiModel){
        if (errorMsg != null){
            uiModel.addAttribute("error", "Incorrect credentials! Please, try again");
        }
        if (msg !=null){
            uiModel.addAttribute("msg", "Logged out");
        }
        return "/login";
    }