Quick and dirty fix to error handling in validations.rb