public String perform(HttpServletRequest request) {
		List<String> errors = new ArrayList<String>();
		request.setAttribute("errors", errors);

		try {
			LoginForm form = formBeanFactory.create(request);
			request.setAttribute("form", form);

			// If no params were passed, return with no errors so that the form
			// will be
			// presented (we assume for the first time).
			if (!form.isPresent()) {
				return "e_login.jsp";
			}

			// Any validation errors?
			errors.addAll(form.getValidationErrors());
			if (errors.size() != 0) {
				return "e_login.jsp";
			}

			Transaction.begin();
			// Look up the user
			EmployeeBean employee = employeeDAO.login(form.getUserName(),
					form.getPassword());

			if (employee == null) {
				errors.add("User Name not found");
				Transaction.commit();
				return "e_login.jsp";
			}

			// Check the password
			/*
			 * if (!employee.checkPassword(form.getPassword())) {
			 * errors.add("Incorrect password"); return "e_login.jsp"; }
			 */

			// Attach (this copy of) the user bean to the session
			HttpSession session = request.getSession();
			session.setMaxInactiveInterval(600);
			session.setAttribute("employee", employee);

			Transaction.commit();
			return "e_customermanage.jsp";
		} catch (RollbackException e) {
			errors.add(e.getMessage());
			return "e_login.jsp";
		} catch (FormBeanException e) {
			errors.add(e.getMessage());
			return "e_login.jsp";
		} catch (Exception e) {
			errors.add(e.getMessage());
			return "e_login.jsp";
		} finally {
			if (Transaction.isActive())
				Transaction.rollback();
		}
	}