Validator Middleware for Sinatra Applications