Re-added cookie login stuff that had vanished

Yeah idk