fix required error messages