public List<String> getValidationErrors() {
        List<String> errors = new ArrayList<String>();

        if (userName == null || userName.length() == 0) errors.add("User Name is required");
        if (password == null || password.length() == 0) errors.add("Password is required");
        if (action == null) errors.add("Button is required");

        if (errors.size() > 0) return errors;

        if (!action.equals("Login")) errors.add("Invalid button");
        if (userName.indexOf("<") >= 0 || userName.indexOf(">") >= 0) 
        	errors.add("User Name must not contain the < or > characters.");
		
        return errors;
    }