added login security, cards index, lots of tweaks