Added api authentication