added error/success msg on validation example