added permission check of navigation items
redirect to login page from admin page if not login