error handle of validation key