Minor change to auth check