Add where not null condition to auth filter