Correctly reset basic auth