Fixed copy-paste error.
Added authentication.