Added check for auth on page view