Added redirect to dash if logged in and visiting /index.php