Validation Fixes

Fixes several server-side validation bugs.
A somewhat terser way to say this would be:

```python
return len(re.findall(r'\d', s)) not in [5, 9]
```

Maybe not worth changing, but in general I'd avoid saying ``not x != y`` in favorof just saying ``x == y``.