Added Restrictions in edit.php and post.php