fixed validation failure bug