check if valid doi client and server side