fix automatic auth on page load