Branch name validator