improving markup for validation