added authentication system to get/update flashcard functionalities