Potential fix for redirecting users to dash if already logged in