post-rejiggered works just as well, removed some redundant queries. my method of nullproofing doesn't work because javascript is a liar and i'm too exhausted to think of a better means of validation. time to go home.