form validation for project add & edit form