fix validation of invisible fields