redirect to main page when authentication failed