Fixed an edge case where the form might display an error even though there is none