add validate method
Merge branch 'edge' of github.com:blue-kite/sinatra_proxy into edge