Login

Mostly work on group join. I did fix a lot of indentations cuz it was killing me.
Let's do this in a separate diff.