Make login work(ish).