Added some crude log storage. Working on login function