switch validation logic. oops.