@Override
	protected ModelAndView onSubmit(Object command, BindException errors) throws Exception {
		String userName = ((LoginForm) command).getUserName();
		String password = ((LoginForm) command).getPassword();
		ModelAndView modelAndView;
		if (this.usersManager.checkPassword(userName, password)) {
			modelAndView = new ModelAndView(new RedirectView(getSuccessView()));
		} else {
			modelAndView = new ModelAndView(getFormView(), "startUserSession", command);
			errors.rejectValue("password", "error.user-incorrect", null, "Password incorrect");
			modelAndView.addAllObjects(errors.getModel());
		}
		return modelAndView;
	}