Required option validation middleware