def get_headers(req):
    """
    validate that request headers contains user and tenant id
    :param req: global request
    :return: user and tenant id as strings
    """
    user = req.headers.get('X-User-ID', None)
    tenant = req.headers.get('X-Tenant-ID', None)
    return user, tenant