set html5 required="" attr on required fields