Refactor login.processor