Use form object to validate post.