update Validate.rb