Added validation for edit html form