More lenient checking for html forms

Also some small edits