add custom login_handle support