fixed validation for new and edit