@RequestMapping(method = RequestMethod.POST)
	public String processForm(@Valid LoginForm loginForm, BindingResult result,
			Model model) {

		try {
			if (result.hasErrors()) {
				return "login";
			}

			boolean isValid = loginService.isValidPassword(loginForm.getUserName(), loginForm.getPassword());

			if (isValid) {
				return "loginSuccess";
			} else {
				result.rejectValue("userName", "login.failed");
				return "login";
			}

		} catch (Exception e) {
			result.rejectValue("userName", "global.exception.message");
			return "login";
		}
	}