added additional validation not to exceed lengths of DB vals