@RequestMapping(value = "/users/{id:[0-9]+}")
    @AuthRequired
    public String userInfo(Model model, @PathVariable String id, HttpServletRequest request){
        try {
            UserInfo user = userFacade.getById(new Long(id));
            model.addAttribute("user",user);
        } catch (NoIdException e) {
            model.addAttribute("error","No user with id = "+ e.getId().toString());
        }
        return "userInfo";
    }