making validate raise errors faster