modified file index.php for implement user role control