Validate method added