The index page redirect to the dashboard if the user is logged in.