Creater Main.php to avoid unauthorized users to view page contet