added example showing off validation