refactor login info