need to fix record invalid valiation error