change the way of rest API login support the understand basic auth