Added login check for superuser status.