Login/Register flow + internal architecture