implement Validate func