Changing the main page to goto dashboard for logged in user