ISSUE#527. Validate form before checking if it is valid.