Correcting auth check