@RequestMapping(value = "/register", method = RequestMethod.POST)
 public String addUsr(@ModelAttribute("dusr") Dusr dusr, BindingResult result, ModelMap model) {
   model.addAttribute("dusr", new Dusr());
   if (duService.registerUser(dusr) != null) {
     model.put("tab", "Profile");
     model.put("dusr", dusr);
     return "editProfile";
   }
   return "login";
 }
 @RequestMapping(value = "/changeProfile", method = RequestMethod.POST)
 public String modifyDetail(
     @ModelAttribute("dusr") Dusr dusr, BindingResult result, ModelMap model) {
   model.addAttribute("dusr", new Dusr());
   if (duService != null) {
     duService.modifyUser(dusr);
     model.put("tab", "Profile");
     model.put("dusr", dusr);
     return "viewProfile";
   }
   return "login";
 }
 @RequestMapping(value = {"/updatePassword"})
 public String updatePassword(
     ModelMap model,
     @ModelAttribute("dusr") Dusr dusr,
     BindingResult result,
     @ModelAttribute("passwordManagement") PasswordManagement passwordManagement) {
   dusr.setUsrid(passwordManagement.getUserId());
   dusr = duService.changePassword(passwordManagement);
   dusr.setUsrpwd(null);
   model.addAttribute("dusr", dusr);
   model.put("tab", "Profile");
   return "viewProfile";
 }