meta-login set up. login redirect now works. bugfixes across the board.