Adding validate handler to form API that will integrate with entity validator.

#22
What's the extra `(` for?