move form validation to html attributes