correcting validation