Branch validation improvement

This update provides additional validation when configuring new workflows, as well as when adding new branches.