Currently log in sort of works

Needs to be restructed correctly.