check for valid base64