displaying validation errors