Refactor login info