Fix for auto_redirect not redirecting once authenticated