refactor login url