added custom ruby_on_rails validator methods