Conditionally required field error remains after condition corrected