fixing html for validation of page after error message