Added checks for validity to edit/add table for Manager