Add validate method