fix authentication to use cookies and not window store
WIP adding users [#9]