Added validation error functionality

closes issue/#3