Fix nil error when not logged in