Magento Prototype validation.