Added function that only authenticated user can view the page - SAL-258