Added validation for cf
Added validation function into class