To not create empty tab when user is not logged.