Refactor LoginActivity