Fixes exception in displayqr when user not logged in