Added validate method to ValidatePanel