Functaionl, roughly everything works
Small login ref bug