Some ActiveRecord validators for Rails 3