Validation implementation