Port of ActiveRecord Validators to Objective-C