change index view: if there is logged in user render profile page