validate request method