handle request validation