Optional close button for dialog
HTML5 input types support and validation