uncommented logged_in check