check to see if logged in before displaying view pres