move entry exist check to pathManage.php
fix errormsg appearance
add error page
add authentication and content exist check/redirect