Added authentication to layout page