fix fatal error when not logged in