adding login stuff

buried old errors deeper in code but they are still there. They just
have more problems on top of them now.