require login for flashcards, fix issues.