fixed validation error sequence