adding login stuff, still buggy