adding basic auth method
adding basic auth method