Fixes #1

Implements decent field checking using regular expressions.