CForm updated to handle form-validation