avoid using multiline anchors when validating

Resolves an ActiveModel error in Rails 4 (https://github.com/rails/rails/blob/4-0-stable/activemodel/CHANGELOG.md).