lots of login work, still buggy