Logic for Terms and Conditions validation