Add validate method to xblock core.