progress on the login, still borken see #41