created card layout that can switch between LoginCard and GameCard