fix auth on the main page