added login_by_alias function