improvement on aux.login