Fixing problem when validation locked form in invalid state