Fixed html form validation