checks whether logged in on all relevant pages