Add validation to customer and payment views.