store null instead of undefined
check nested attributes