Finish basic auth functionality