Got the error validation to work