Validate values in certain fields. Closes #5.
new functions on the to-do list