Add support for iOS 5 text validation callbacks in alert views.