public String login() {
		String au = null;
		LoginService service = new LoginService();

		try {
			au = service.authenticate(this.userId, this.password);
			System.out.println(au);
			if (!au.equals("failure")) {
				FacesContext fc = FacesContext.getCurrentInstance();

				HttpSession session = (HttpSession) fc.getExternalContext()
						.getSession(true);
				session.setAttribute("username", this.userId);
				session.setAttribute("role", au);
			}
		} catch (ConnectException e) {
			// TODO Auto-generated catch block
			this.errorMessage = e.getMessage();
			e.printStackTrace();
		} catch (InvalidLoginException e) {
			// TODO Auto-generated catch block
			this.errorMessage = e.getMessage();

			e.printStackTrace();
		}

		return au;

	}