added handling for not logged in