fixed add form validation for add funtion