Added basic validation error processing