add subnet validator to app.rb