Update CFormElement.php

Updated validation rules to ignore empty values