More login work done. Backend still needed.