Added example showing both styles of validation