Clientside validation for form. Closes #79.