pages controller redirects user if signed in