Added admin and user authentication to pages