Fix edit forms after validation failure