refactor axislogin