changed way to check if page is signed in