Server refactoring
KTH login