add eq operator for cards + err msg
fix login glitch