adding validation in startup.rb