Login

Mostly work on group join. I did fix a lot of indentations cuz it was killing me.
While I'm not making extra effort to future-proof, I also don't want to deliberately change this to be a misfit for the future - when we have a lot of groups in the database. :-)