validation for page + fix delete page