add basic request validation