I add attribute to model like that:
model.addAttribute("regErr", "Registration error."); return "register";
And