private void validateCustomerInfo(HttpServletRequest request, Customer customer) {
		if (!customer.isValid())
			request.setAttribute("error", "true");
		
		if (!customer.isValidGivenName())
			request.setAttribute("invalidGivenName", "Given Name must not be empty and number");
		if (!customer.isValidSurname())
			request.setAttribute("invalidSurname", "Surname must not be empty and number");
		if (!customer.isValidAddress())
			request.setAttribute("invalidAddress", "Address must not be empty and special character");
		if (!customer.isValidEmail())
			request.setAttribute("invalidEmail", "Email has an invalid email format");
		if (!customer.isValidCountry())
			request.setAttribute("invalidCountry", "Country name must not be empty and number");
		if (!customer.isValidState())
			request.setAttribute("invalidState", "State must not be empty and number");
		if (!customer.isValidPoscode())
			request.setAttribute("invalidPostCode", "Postcode must not be empty and characters");
		if (!customer.isValidCreditNo())
			request.setAttribute("invalidCreditNo", "Credit Number must not be empty and characters");
	}