Check if user is loggued before appending element