Simple Objective-C text validation.