Validate pod on create and update.

* This commit adds pod validations on when creating and updating a pod.
Merge pull request #639 from rafael/validate_pods

Validate pod on create and update.