added restricted page and logout