Validation of the edit form fixed