Correcting validation errors