added authentication and createPlaylist function