fixed validation for edit function and added no html allowed in inputs