adds missing conditional for logged out users