added example app for validating text input in an alert view