major update with login mostly implemented