debugging validation problem