Adding check if data isl oaded before uploading token.