Redirect to root path if logged-in users are not valid
Redirect to the root path if card's url doesn't exist
cosmetic change about ui