public String execute() {
		
		Boolean validData = true;
		try{			
			if (username == null || ("".equals(username))) {
				addActionError(getText("error.name.required"));
				validData = false;
			}

			if (password == null || ("".equals(password))) {
				addActionError(getText("error.password.required"));
				validData = false;
			}
			
			if(!validData){
				return "failure";
			}
			
			LoginService ls = new LoginService();
			boolean isValid = ls.isValidPassword(this.username, this.password);

			if (isValid) {				
				return "success";
			} else {				
				addActionError(getText("login.failed"));
				return "failure";
			}
		}catch(Exception e){
			addActionError(getText("global.exception.message"));
			return "failure";
		}
	}