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

#22