check if the user is online before creating profile