Refactor: move login-related stuffs to their own folder.