category and programs validations and fixing factories