Update validation for Rails 3