fixed validation on hasmany